package com.example.shiro.shiro.utils;


import org.apache.shiro.session.Session;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author chong
 * @create 2020/3/11
 * Desc:
 */
public class SystemConsts {
    /*存储用户id和对应session的键值对*/
    public static Map<Long, Session> map_session = new HashMap<Long, Session>();
    public static Map<String, String> session_map = new HashMap<String, String>();
    //存储存证随机参数信息
    public static List<String> cunList = new ArrayList<>();

    public static final String SESSION_USER = "UserInfo"; //用户session key

    public static final String SKEY = "sKey"; //加密解密key

    public static final String MB_CODE = "mb001";  //黑名单监测配置代号

    public static final String SHARE_JSESSION_NAME = "chid"; //redis中,共享session_id的key

    public static final Integer SHARE_JSESSION_TIME = 600000; //redis中,共享session_id的key

    public static final String VERIFY_CODE = "verify_code"; //验证码key

    public static final String SEED_LINK_KW = "<keyword>";  //种子链接参数变量

    public static final Integer TASK_LEVEL = 10; //任务等级

    public static final String REGISTER_USER_ID = "REGISTER_USER_ID"; //用户注册IDkey

    public static final String ROLE_NORMAL = "normal"; // 正常角色字符串

    public static final String ROLE_USER = "user"; // 普通用户字符串

    public static final String ROLE_SUPER_ADMIN = "super_admin"; // 超级管理员角色字符串

    public static final String ROLE_ADMIN = "admin"; // 管理员角色字符串

    public static final String ROLE_EXECUTOR = "executor"; // 执法局用户角色字符串

    public static final String OFF_LINE = "offline";//是否被挤下线

    public static final String FETCH_FREQUENCY = "fetch_frequency"; // 抓取频率 单位:天

    public static final String ADMIN_PASSWORD = "admin_password"; // 管理员默认密码


}
